<template>
  <div class="nav-breadcrumb">
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item v-for="(item, index) in navBreadcrumbs" :key="index">{{item}}</el-breadcrumb-item>
    </el-breadcrumb>
  </div>
</template>

<script>
import { defineComponent, computed } from 'vue'
import { useStore } from 'vuex'

export default defineComponent({
  setup() {
    const store = useStore()
    return {
      navBreadcrumbs: computed(()=>store.state.navBreadcrumbs)
    }
  },
})
</script>

<style scoped>

  .nav-breadcrumb {
    margin: 0 auto 0 20px;
  }

</style>